home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 11
/
Mac Magazin and MacEasy Magazine CD - Issue 11.iso
/
Sharewarebibliothek
/
Entwickler
/
CDEF-DeBugger 2.0 ƒ
/
About Resource.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-31
|
1KB
|
29 lines
// Resource ReadMe
/***********************************************************************************************
Different from version 1.0 of CDEF Debugger. You now must have this code
compiled and placed within your projects resource. This is what should be
compiled...
// be sure to include Universal Headers
pascal long main( short variation, ControlHandle theControl, short msg, long param )
{
// get the UPP stored in the control's refCon
ControlDefUPP cdefDefUPP = (ControlDefUPP)(**theControl).contrlRfCon;
// now call the UPP with the parameters the toolbox sent ya
return( CallControlDefProc( cdefDefUPP, variation, theControl, msg, param ));
}
I've provided the compiled version of this in the file called "Stub.r". Make
sure this file is located within the project or this process of debuggin will
not work.
Be sure to give this CDEF resource the same ID you plan to use for your control
************************************************************************************************/